package com.heima.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_partner")
public class Partner {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String name;//合作商名称
    private String mobile;//手机号
    private Integer ratio;//分成比例
    private String account;//账号
    private String password;//密码
    private String phone;//联系电话
    private String email;//电子邮箱
    private String province;//所在省
    private String city;//所在市
    private String county;//区县
    private String addr;//详细地址
    private String contact;//联系人
    private Short status;//状态
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;//新建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;//修改时间
}
